home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ccdl150l.zip
/
ALLOC
/
CALLOC.C
next >
Wrap
C/C++ Source or Header
|
1996-07-05
|
214b
|
12 lines
#include <stdlib.h>
#include <string.h>
void *calloc(size_t numelms, size_t elmsize)
{
unsigned size = numelms * elmsize;
void *pos;
pos = malloc(size);
if (pos)
memset(pos,0,size);
return pos;
}